import { http } from '@/utils/http/http'
import type { pageParams } from '@/types/global'
import type { hotResult } from '@/types/hot'
// 设置通用热门推荐类型 & 表设交叉类型
type hotParams = pageParams & { subType?: string }

// 热门推荐接口
export const getHotRecommendApi = (url: string, data?: hotParams) => {
  return http<hotResult>({
    method: 'GET',
    url,
    data,
  })
}
